package cn.lyjuan.payment.third.base.common.mapper;

import cn.lyjuan.base.mybatis.MyMapper;
import cn.lyjuan.payment.third.base.common.entity.pay.PayTranEntity;
import org.apache.ibatis.annotations.Param;

public interface PayTranEntityMapper extends MyMapper<PayTranEntity> {

    /**
     * 更新退款金额 - 限制总量
     *
     * @param id           id
     * @param refundAmount refundAmount
     * @param tranFee      tranFee
     * @return int
     */
    int updateRefundAmountLimitMax(
            @Param("id") Integer id,
            @Param("refundAmount") Integer refundAmount,
            @Param("tranFee") Double tranFee
    );
}